package com.edu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.user.entity.Module;
import com.edu.user.entity.TreeNodeVO;

import java.util.List;
import java.util.Map;

public interface ModuleMapper extends BaseMapper<Module> {

    List<Module> queryModuleListHierarchyByAccount(String account);

    List<TreeNodeVO> selectTreeNodeListHierarchy();

    List<TreeNodeVO> selectThirdTreeNodeListByRoleId(String roleId);

    int insertGrant(Map map);

    int deleteGrantsByRoleId(String roleId);
}
